package com.flyweight.self;

public class Client {

    public static void main(String[] args) {
        AppFactory appFactory = new AppFactory();
        ConcretAppApplication taoBao = appFactory.getAppByType("淘宝");
        taoBao.run(new User("学生"));
    }
}
